package com.lemon.boot.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜单表持久层对象，对应数据库
 *
 * @author 李猛
 * @since 2024-02-11
 */
@Getter
@Setter
@ToString
@ApiModel(value = "菜单实体类")
@TableName("sys_menu")
public class MenuPO implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键ID
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id")
    private Long id;

    //菜单名称
    @ApiModelProperty(value = "菜单名称")
    private String name;

    //菜单路径
    @ApiModelProperty(value = "菜单路径")
    private String path;

    //前端文件位置
    @ApiModelProperty(value = "前端文件位置")
    private String webFilePath;

    //创建人
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //修改人
    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    //修改时间
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //状态 1正常 0异常
    @ApiModelProperty(value = "状态 1正常 0异常")
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    //删除状态 1是 0否
    @ApiModelProperty(value = "删除状态 1是 0否")
    @TableLogic
    private Integer deleted;

    //是否选择
    @ApiModelProperty(value = "是否选择")
    @TableField(exist = false)
    private boolean selected;
}
